package org.example.service;

import org.example.pojo.DRepair;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.pojo.DRepairContent;
import org.example.pojo.DStaff;
import org.example.pojo.select.DRepairSelect;
import org.example.utils.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author chenhongkai
* @description 针对表【d_repair(报修表)】的数据库操作Service
* @createDate 2024-05-25 16:06:27
*/
public interface DRepairService extends IService<DRepair> {

    public Result<Map> SelectAllRepairs(DRepairSelect dRepairSelect);

    public Result<DRepair> UpdateStatus(DRepair dRepair);

    public List<String> getRepairType();

//    public Result<DRepair> UpdateRepairman(DRepair dRepair);

    public Result<String> Insert(DRepair dRepair);
    public String uploadImage(MultipartFile file,String imageNo) throws IOException;

    public List<String> getApartmentAllId();

    public Result<DStaff> selectStaffNoByNo(String staffId);

    public Result<List<DRepair>> selectDeviceUid(String uid);

    public Result<Map> getRepairStatistic(String month);

    public Result<DRepair> UpdateRepairman(DRepair dRepair);

    public Result<Integer> repairCount();

    public Result<List<DRepairContent>> selectRepairContent(DRepairContent dRepairContent);

    public Result<String> updateRepairContent(DRepairContent dRepairContent);
}
